#include "stdafx.h"
#include "Customer.h"
#pragma once;
using namespace std;

vector<Customer*> Customer::listCustomer;

bool Customer::login(string userName, string passWord)
{
	if(listCustomer.size() == 0)
		Customer::createListCustomer();
	for each(Customer* customer in listCustomer)
	{
		if(customer->tenDangNhap.compare(userName)==0 && customer->passWord.compare(passWord)==0)
			return true;
	}
	
	return false;
}